package com.ctg.behavior.calc.impala.report.event;

import java.util.ArrayList;
import java.util.List;

import com.ctg.behavior.calc.common.CtCalcDate;
import com.ctg.behavior.common.calc.CtCalcFilter;
import com.ctg.behavior.common.calc.CtCalcMeasure;
import com.ctg.behavior.common.consts.CtCalcConsts;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
public class CtCalcEventMeasureReport extends CtCalcMeasure {

	// APP_ID
	private String appId;
	// 第几个measure，从0开始
	private int measureIndex = 0;
	// measure最大值(总数)，从0开始
	private int maxMeasureIndex = 0;
	// 时间(天)最大值(统计的时间有几天)，从0开始
	private int maxSeriesIndex = 0;
	
//	// 格式：YYYY-MM-DD / YYYY-MM-DD HH:00:00 / YYYY-MM-DD HH:MM:00
//	private String fromDate;
//	// 格式：YYYY-MM-DD / YYYY-MM-DD HH:59:00 / YYYY-MM-DD HH:MM:59
//	private String toDate;
	private CtCalcDate caclDate = new CtCalcDate();
	private List<CtCalcDate> calcDateSeries = new ArrayList<>();
	private String unit = CtCalcConsts.UNIT_TYPE_DAY;
	
	// 分组字段
	private List<String> byFields = new ArrayList<>();
	// 全局筛选条件(事件分析、漏斗分析)
	private CtCalcFilter globalFilter = new CtCalcFilter();

}
